const config = {
    VUE_APP_IS_ORIGIN: false, // 前端应用部署模式 true集成部署模式（打包到uap生成jar包） false独立部署模式（前后端分离nginx代理）
    VUE_APP_GATEWAY: 'http://192.168.63.54:9999/', // 微服务网关
    VUE_APP_CDN_URL: 'http://192.168.63.54:9001/', // CDN服务路径
    // 需要加载的CDN JS脚本
    CDN_SCRIPT: [
        { url: `cdn/plantform/default/th-render-component/lib/components/components.umd.min.js`, async: false },
        {url: 'cdn/om/thVueGis/default/lib/thVueGis.umd.min.js', async: false},
        {url: 'cdn/libs/echarts/default/echarts.min.js', async: false},
        {url: 'cdn/libs/echarts/default/echarts-gl.min.js', async: false},
        {url: 'cdn/libs/echarts/default/echarts-liquidfill.js', async: false}
    ],
    // 需要加载的CDN 样式文件
    CDN_STYLE: [
        { url: `cdn/plantform/default/th-render-component/lib/iconfont/iconfont.css` },
        { url: `cdn/plantform/default/th-render-component/lib/styles/render.css` },
        { url: 'cdn/om/thVueGis/default/lib/thVueGis.css'},
    ],
};

if (typeof window !== 'undefined' && window.document) {
    window.__gconf = config;
    // 处理cdn 资源加载
    const resources = [
        ...config.CDN_STYLE,
        ..._resources,
        ...config.CDN_SCRIPT
    ]
    window._loadCdnResources(null, resources)
} else {
    module.exports = config;
}
